//
//  FTYLoginManager.m
//  RedWine
//
//  Created by Liufangfang on 2017/1/17.
//  Copyright © 2017年 HuiBangKe. All rights reserved.
//

#import "FTYLoginManager.h"
#import "FTYNavigationController.h"
#import "RWLoginViewController.h"

@implementation FTYLoginManager

+ (void)reLoginFromViewController:(UIViewController *)viewController{

    RWLoginViewController *loginVC = [[RWLoginViewController alloc] init];
    FTYNavigationController *loginNC = [[FTYNavigationController alloc] initWithRootViewController:loginVC];
    loginNC.navigationBar.translucent = NO;
    loginNC.navigationBar.barTintColor = [FTYColor getMainColorWithAlpha:1.];
    loginNC.navigationBar.tintColor = [UIColor whiteColor];
    [loginNC.navigationBar setTitleTextAttributes:@{NSFontAttributeName: FTY_FONTTSIZE(20),
                                                    NSForegroundColorAttributeName: [UIColor whiteColor]}];
    [viewController presentViewController:loginNC animated:YES completion:nil];
}

@end
